package com.atguigu.common.mq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MqConfig {

    /**
     * 注册一个运单队列
     * @return
     */
    @Bean
    public Queue queueWaybill(){
        return new Queue(MqConstants.QUEUE_WAYBILL);
    }



}
